﻿using BW.MesProject.Equipment.Infrastructure.Dto.Output.ProjectMaintenance;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Infrastructure.Dto.Output.ProjectFrom
{
    /// <summary>
    /// 项目表单输出参数
    /// </summary>
    public class ProjectFromOutput
    {
        /// <summary>
        /// 项目表单id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 项目类型（数据字典）
        /// </summary>
        public string ProjectType { get; set; }

        /// <summary>
        /// 项目维护列表
        /// </summary>
        public List<ProjectMaintenanceOutput> ProjectMaintenances { get; set; }

        /// <summary>
        /// 项目维护名称（多个名称用顿号分隔）
        /// </summary>
        public string ProjectMaintenanceNames { get; set; }

        /// <summary>
        /// 项目维护ID列表（用于编辑表单时回显）
        /// </summary>
        public List<long> ProjectMaintenanceIds { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string ProjectDescription { get; set; }

        /// <summary>
        /// 创建人，可以为空
        /// </summary>
        public string CreatedBy { get; set; }

        /// <summary>
        /// 创建时间，默认为当前系统时间
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人，可以为空
        /// </summary>
        public string UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间，默认为当前系统时间
        /// </summary>
        public DateTime UpdatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
    
}
